package cn.kgc.mapper;

import cn.kgc.entities.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

@Mapper
public interface EmpMapper extends JpaRepository<Emp,Integer> {
    public List<Emp> getAllEmp();
    public Emp getEmpById(Integer id);
    public void addEmp(Emp emp);
    public void updateEmp(Emp emp);
    public void deleteEmpById(Integer id);
}
